import unittest
import time
from BSTestRunner import BSTestRunner
from selenium import webdriver
testcase_dir=r'../test_case'
discover=unittest.defaultTestLoader.discover(testcase_dir,pattern='test*.py')
report_dir=r'../resport'
now=time.strftime('%Y_%m_%d_%H_%M_%S')
report_name=rf'{report_dir}/{now}BS.html'
with open(report_name,'wb') as f:
    runner=BSTestRunner(f,title='测试报告',description='测试详情')
    runner.run(discover)